import storage from 'good-storage'

const HOT_MOVIES = '__hotMovies__'

const UP_MOVIES = '__upMovies__'


export function getHotMovies() {
  return storage.session.get(HOT_MOVIES, '')
}

export function setHotMovies(movies) {
  storage.session.set(HOT_MOVIES, movies)
  return movies
}


export function getupMovies() {
  return storage.session.get(UP_MOVIES, '')
}

export function setupMovies(movies) {
  storage.session.set(UP_MOVIES, movies)
  return movies
}
